package cn.tedu.submarine;

import javax.swing.*;

public class MineSubmarine extends SeaObject implements EnemyLife{
    public MineSubmarine(){
        super(63,19);
    }

    public ImageIcon getImage(){
        return Images.minesubm;
    }

    public  void move(){
        x+=speed;
    }

    public Mine shootMine(){
        return new Mine(this.x+this.width,this.y-11); //返回一个新的水雷对象
    }

    public int getLife(){
        return 1;
    }
}
